<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-17 16:56:50
 * @Last Modified time: 2023-02-17 17:01:06
 */

namespace app\common\enum\store\goods;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class CommentEnum
 * @package app\common\enum\store\goods
 */
class CommentEnum extends BaseEnum
{
    const RANGE = 1;

    const NEGATIVE  = 2;

    const COMMONLY  = 3;

    const GOOD  = 4;

    const VERYNICE  = 5;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::RANGE => [
                'name' => '极差',
                'value' => self::RANGE,
                'color'=>'red'
            ],
            self::NEGATIVE => [
                'name' => '差评',
                'value' => self::NEGATIVE,
                'color'=>'red'
            ],
            self::COMMONLY => [
                'name' => '一般',
                'value' => self::COMMONLY,
                'color'=>'black'
            ],
            self::GOOD => [
                'name' => '好',
                'value' => self::GOOD,
                'color'=>'green'
            ],
            self::VERYNICE => [
                'name' => '非常好',
                'value' => self::VERYNICE,
                'color'=>'green'
            ],
        ];
    }
}
